import CouponIndex from '@/components/coupon/index.vue'
import CouponInfo from '@/components/coupon/info.vue'

//路由列表
const list = [
    {
        path:'index',
        name: 'CouponIndex',
        component: CouponIndex,
    },
    {
        path:'info',
        name: 'CouponInfo',
        component: CouponInfo,
    },
]

//父路由结构
const layout = {
    template: `<router-view></router-view>`
}

export default [{
    path: '/coupon',
    name: 'coupon',
    children: list,
    component: layout,
}]